#ifndef _tileset_h_
#define _tileset_h_

#include <sdl/sdl.h>

/*
DATAFORMAT FOR TILESETS:
7 Bytes Identifier (TILESET)
1 Byte Version char
4 Bytes TileWidth
4 Bytes TileHeight
4 Bytes TilesPerRow
4 Bytes Rows
TilesPerRow*Ros Bytes Collison Data
*/

using namespace std;

class Tileset {
    private:
        SDL_Surface *mSurface;
        int mTileW,mTileH;
        int mTilesPerRow;
        int mRows;
        unsigned char *mCollData;
        char *mImgName;
    public:
        Tileset(char*);
        ~Tileset();
        void save(char*);
        void load(char*);
};

#endif
